package com.xlf.service.judge.strategy.judgeMachine;

import com.xlf.service.judge.exception.CompileError;
import com.xlf.service.judge.exception.SystemError;
import com.xlf.service.judge.pojo.CompileResult;

/**
 * @Author xlf 2734029211@qq.com
 * @Date 2023/9/12 10:35
 * @Description: TODO
 * @Version 1.0
 */
public interface Compile {

    /**
     *
     * @param language 语言
     * @param code 提交的代码
     * @return 编译结果
     */
    Object doCompile(String language, String code)  throws CompileError;

}
